import Mock from 'mockjs'

export default {
  list: () => {
    const rows = Mock.mock({
      'rows|30': [{
        id: '@increment(1)',
        orderDate: '@date("yyyy-MM-dd")',
        parkingName: '@ctitle(5)',
        'special|1': true,
        title: '@sentence(10, 20)',
        parkingId: '@increment(10000)',
        'type|1': [0, 1, 2],
        parkingAddress: '@ctitle(10)',
        totalNum: 25,
        time: '9:00 - 22:00',
        'devType|1': [0, 1, 2],
        'status|1': [0, 1, 2, 3],
        contactName: '@cname()',
        pageviews: '@integer(300, 5000)'
      }],
      'total': 100
    })
    return {
      code: 20000,
      data: rows
    }
  }
}
